How to fix the ERR_TOO_MANY_REDIRECTS error

Procédure

What is the ERR_TOO_MANY_REDIRECTS error?

It is very common to encounter the ERR_TOO_MANY_REDIRECTS error when visiting a Wordpress site.
This error indicates that you currently have a redirection loop on your website, which blocks the site from displaying.
Indeed, this mainly happens when your site redirects from a first URL to a second [PERSON_NAME] redirects to the first. However, this error is relatively easy to fix.

Delete the cookies for the site concerned

When you get this error on Google or FileZilla, the browser will first ask you to delete the cookies and then test your website again. Since cookies allow you to stay logged in to certain websites, it is recommended to simply delete the one belonging to the site causing the problem.

How do you clear the Wordpress cache?

[PERSON_NAME] type of loop. It is highly likely that despite [PERSON_NAME] redirection, you still have access to your Wordpress dashboard. In this case, if you have a plugin such as WP Super Cache or WP Rocket, you will be able to clear your website cache. To do this, log in to your Wordpress Dashboard and click on the "Clear cache" button located at the top of your website.

How do you clear the Cloudflare cache?

1. To clear the Cloudflare cache, log in to your Cloudflare dashboard, click on the domain name concerned, then on "Caching".

How to fix the ERR_TOO_MANY_REDIRECTS error

2. Finally, click on the "Purge Everything" button to purge the entire Cloudflare cache.

How to fix the ERR_TOO_MANY_REDIRECTS error

How [PERSON_NAME] the nature of the redirection loop?

If despite [PERSON_NAME] a problem and this error, it is advisable to determine the nature of your redirection loop. A free online tool such as redirect-checker will allow you to verify it. To do this, enter the URL of the site concerned and click on the "Analyze" button.

How to fix the ERR_TOO_MANY_REDIRECTS error

Chrome has the "Redirect Path" extension, which will allow you to perform the same analysis as redirect-checker.

How to fix the ERR_TOO_MANY_REDIRECTS error

How do you check your HTTPS settings on LWS?

[PERSON_NAME] is highly likely that the redirection loop is due to a faulty .htaccess file. First, you need to check that the .htaccess file is not the cause. To do this, simply rename it to htaccess.txt to disable it.

[PERSON_NAME] also very often due to a problem with the redirection settings to the website in HTTPS. Indeed, if you force SSL on your Wordpress site while no certificate is installed on your web hosting account, it is highly likely that you will instantly trigger a redirection loop. [PERSON_NAME], [PERSON_NAME] install the SSL certificate through your customer area and wait 15 to 20 minutes for it to be installed.

It [PERSON_NAME] the SSL redirection activated through your customer area. To check this, log in to your LWS account and access the shared hosting [PERSON_NAME]>

Click on the "SSL" button located in the "Security" section.

How to fix the ERR_TOO_MANY_REDIRECTS error

If "HTTPS SSL Redirection" is set to "enable", change it to "Disable" and click on "Validate".

How to fix the ERR_TOO_MANY_REDIRECTS error

How do you check your HTTPS settings on Cloudflare?

However, this error may also be due to a third-party service such as Cloudflare. [PERSON_NAME] service with the "Flexible" option while you have already installed a first SSL certificate on your web hosting. [PERSON_NAME] simple. When you select Flexible on Cloudflare, all requests will be sent over HTTP to your host server which already has a redirection to HTTPS. As a result, you will inevitably create a redirection loop.

To avoid this kind of problem, you need to change the settings on Cloudflare to switch to "Full" or "Full (Strict)".

How to fix the ERR_TOO_MANY_REDIRECTS error

How do you check the settings on your Wordpress site?

One of the last things to check is that the URLs shown in your Wordpress dashboard are [PERSON_NAME] correct. Make sure that the two URLs are identical and point to [PERSON_NAME] valid domain name. To do this, go to your Wordpress dashboard, click on "Settings" then on "General".

How to fix the ERR_TOO_MANY_REDIRECTS error

Indeed, "[ADDRESS] web address of Wordpress" and "[ADDRESS] web address of the site" must be the same.

How to fix the ERR_TOO_MANY_REDIRECTS error

If you cannot access your dashboard, [PERSON_NAME] possible to modify the above settings by entering two lines of code in the wp-config.php file of your Wordpress site. This file is located in your FTP space, at the root of your website. To do this, [PERSON_NAME], below the first PHP tag.

define('WP_HOME','https://votredomaine.com');
define('WP_SITEURL','https://votredomaine.com');

Once these two lines have been added, you can check whether your website is working properly.

Conclusion

You are now able to understand what the TOO_MANY_REDIRECTS error means and you are able to fix it on your web hosting with LWS. [PERSON_NAME], this error may be caused by certain configurations set up on your Wordpress site.

Feel free to share your comments and questions.

Rate this article :

2.5/5 | 2 opinion

This article was useful to you ?

Article utileYes

Article non utileNo

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

17mn reading

How do I update WordPress to the latest version?

1mn reading

How does Yoast SEO work?

4mn reading

How can you optimise your Wordpress site?

1mn reading

How do I use Gutenberg on Wordpress?


Questions sur cet article

Ask the LWS team and its community a question

RGPD : Responsable LWS-Ligne Web Services. Finalité : modération et publication publique de votre question, notification éventuelle d'une réponse. Base légale : consentement (art. 6.1.a RGPD). Conservation des emails : 90 jours après notification, 12 mois maximum sans réponse. Vous pouvez exercer vos droits via notre nos CGV - section RGPD.